<template>
  <div class="topNav">
    <div class="topLeft">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-home_menu" />
      </svg>
    </div>
    <div class="topCenter">
      <span class="navbtn" @click="$router.push('/me')">我的</span>
      <span class="navbtn active">发现</span>
      <span class="navbtn">云村</span>
      <span class="navbtn">视频</span>
    </div>
    <div class="topRight" @click="$router.push('/search')">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-sousuo" />
      </svg>
    </div>
  </div>
</template>
<script>
</script>
<style lang="less" scoped>
.topNav {
  width: 7.5rem;
  height: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.2rem;
  .icon {
    width: 0.4rem;
    height: 0.4rem;
  }
  .topCenter {
    width: 5rem;
    display: flex;
    justify-content: space-around;
    .active {
      font-weight: 900;
      font-size: 18px;
    }
  }
}
</style>